package J1_9;

public class J109task2 {
    public static void main(String[] args) {
        int a[]={1,9,3,7,4,2,5,0,6,8};
        int b;
        for (int i=0;i<a.length;i++){
            for (int j=a.length-1;j>0;j--){
                    if(a[j]<a[j-1]){
                        b=a[j];
                        a[j]=a[j-1];
                        a[j-1]=b;
                    }
            }
        }
        for (int i=0;i<a.length;i++){
            System.out.println(a[i]);
        }
    }
}
